﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Formatting;
using System.Text;
using System.Threading.Tasks;

namespace Inovout.Web.Http
{
    public class UnknownMediaTypeFormatter : MediaTypeFormatter
    {
        public override Task<object> ReadFromStreamAsync(Type type, System.IO.Stream readStream, System.Net.Http.HttpContent content, IFormatterLogger formatterLogger)
        {
            return base.ReadFromStreamAsync(type, readStream, content, formatterLogger);
        }
        public override Task<object> ReadFromStreamAsync(Type type, System.IO.Stream readStream, System.Net.Http.HttpContent content, IFormatterLogger formatterLogger, System.Threading.CancellationToken cancellationToken)
        {
            return base.ReadFromStreamAsync(type, readStream, content, formatterLogger, cancellationToken);
        }
        public override bool CanReadType(Type type)
        {
            return true;
        }
        public override bool CanWriteType(Type type)
        {
            return false;
            throw new NotImplementedException();
        }
        public override MediaTypeFormatter GetPerRequestFormatterInstance(Type type, System.Net.Http.HttpRequestMessage request, System.Net.Http.Headers.MediaTypeHeaderValue mediaType)
        {
            return base.GetPerRequestFormatterInstance(type, request, mediaType);
        }
        public override IRequiredMemberSelector RequiredMemberSelector
        {
            get
            {
                return base.RequiredMemberSelector;
            }
            set
            {
                base.RequiredMemberSelector = value;
            }
        }
    }
}
